package org.example.DataStructure.Queue;

//队列的测试
public class QueueText {
    public static void main(String[] args) {
        Queue<String> queue = new Queue<>();
        queue.enqueue("a");
        queue.enqueue("b");
        queue.enqueue("c");
        queue.enqueue("d");
        //打印队列
        System.out.println("队列:" + queue);
        //入队
        queue.enqueue("e");
        System.out.println("队列:" + queue);
        //出队
        queue.dequeue();
        System.out.println("队列:" + queue);
    }
}
